package com.smxy.daydayup.mapper;

import com.smxy.daydayup.pojo.SectionTree;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @team daydayup
 * @time 2021-12-12 8:33
 */
@Mapper
public interface SectionTreeMapper {
    int deleteByPrimaryKey(Long sectionId);

    int insert(SectionTree record);

    int insertSelective(SectionTree record);

    SectionTree selectByPrimaryKey(Long sectionId);

    int updateByPrimaryKeySelective(SectionTree record);

    int updateByPrimaryKey(SectionTree record);

    List<SectionTree> selectListByCourseId(@Param("courseId") Integer courseId);

    int deleteTreeByCourseId(@Param("courseId") Integer courseId);

    int selectNextNodeIdOfCourse(Integer courseId);
}